dataSource {
    pooled = true
}
hibernate {
    show_sql = true
    cache.use_second_level_cache = true
    cache.use_query_cache = true
    cache.provider_class = 'com.opensymphony.oscache.hibernate.OSCacheProvider'
}
// environment specific settings
environments {
    development {
        dataSource {
			driverClassName = "org.h2.Driver"
		    username = "sa"
		    password = ""
            dbCreate = "create-drop" // one of 'create', 'create-drop','update'
            url = "jdbc:h2:mem:grails-ext-dev"
        }
    }
    test {
        dataSource {
			driverClassName = "org.h2.Driver"
		    username = "sa"
		    password = ""
            dbCreate = "create-drop"
            url = "jdbc:h2:mem:grails-ext-test"
        }
    }
    production {
        dataSource {
			driverClassName = "com.mysql.jdbc.Driver"
			username = "sa"
			password = ""
            dbCreate = "update"
            url = "jdbc:mysql://localhost/grails-ext"
        }
    }
}